package com.zxlspace.thread;

public class MyThread1 implements Runnable{

    private int num = 1000;

    @Override
    public void run() {
        while (true) {
            if (num == 0) {
                break;
            }
            System.out.println(Thread.currentThread().getName() + "---->" + num--);
        }
    }
}
